

public class HW4 {
    public static void main(String[] args) {
        int i=0;
        int num=0;
        do {
            if (i%3==0||i%5==0)
                num+=i;
            i++;

    }while (i<=100);
        System.out.println("100以内能被3整除的数加上能被5整除的数的和"+num);

}}
